const dynamicRoutes = [
    {
        path:"/",
        component: () => import(/*webpackChnkName:'home' */"../pages/Home"),
        redirect:"/welcome",
        // 所有用户都能访问到充值中心和充值管理
        children:[
            {
                path:"vipmanger",
                component:()=>import(/*webpackChunkName:'vipmanger' */"../pages/Home/VipManger"),
                name:"vipmanger",
                meta:{
                    name:"vip管理",
                    fullPath:"/vipmanger",
                    icon:"iconfont icon-VIPchongzhi-"
                },
                children:[
                    {
                        path:"charge",
                        component:()=>import(/*webpackChunkName:'charge' */"../pages/Home/VipManger/charge"),
                        name:"charge",
                        meta:{
                            name:"vip充值",
                            fullPath:"/vipmanger/charge",
                            icon:"iconfont icon-VIPchongzhi-1"
                        }
                    },
                    {
                        path:"order",
                        component:()=>import(/*webpackChunkName:'order' */"../pages/Home/VipManger/order"),
                        name:"order",
                        meta:{
                            name:"订单管理",
                            fullPath:"/vipmanger/order",
                            icon:"iconfont icon-dingdan"
                        }
                    }
                ]

            },
            {
                path:"pre_order",
                component:()=>import(/*webpackChunkName:'preOrder' */"../pages/Home/PreOrder"),
                name:"pre_order",
                meta:{
                    name:"预支付"
                }
            },
            {
                path:"payment",
                component:()=>import(/*webpackChunkName:'payment' */"../pages/Home/Payment"),
                name:"payment",
                meta:{
                    name:"支付主页"
                },
                children:[
                    {
                        path:"pay",
                        component:()=>import(/*webpackChunkName:'pay' */"../pages/Home/Payment/Pay"),
                        name:"pay",
                        meta:{
                            name:"支付页"
                        }
                    },
                    {
                        path:"paySuccess",
                        component:()=>import(/*webpackChunkName:'paySuccess' */"../pages/Home/Payment/PaySuccess"),
                        name:"paySuccess",
                        meta:{
                            name:"支付成功页面"
                        }
                    }
                ]
            }
        ]
    },
    {
        path:"*",
        component:()=>import(/*webpackChunkName:'page404' */"../pages/Page404")
    }
];

export default dynamicRoutes;